from django.conf.urls.defaults import *
import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^monulu/', include('monulu.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/(.*)', admin.site.root),
    
    # Monulu URLs
    (r'^raid/', include('monulu.raid.urls')),
    (r'^sk/', include('monulu.sk.urls')),
    (r'^$', 'monulu.sk.views.index'),
#    (r'^login/(.*)', 'monulu.raid.views.login'),
    (r'^accounts/login/$', 'django.contrib.auth.views.login'),
)
if settings.DEBUG:
    urlpatterns += patterns('',
    (r'^media/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.PATH_TO_MONULU+'/monulu/media/','show_indexes':True}),
    )